
class Person:
    name = ""
    age = 0
    address = ""
    def __init__(self,**kwargs):
        for key,value in kwargs.items():
            setattr(self,key,value)



person1 = Person(name="张三",age=18,address="beijing")
person2 = Person(name="李四",age=20,address="shanghai")
print(person1.__dict__)
print("Person.name",Person.name)
print(person2.__dict__)



